<?php
namespace app\apiadmin\controller;

use app\apiadmin\BaseController;
use app\common\service\partners\PartnersService;

/**
 * 合作伙伴
 */
class Partners extends BaseController
{
    /**
     * 获取
     * 
     * @return mixed
     */
    public function getAll()
    {
        $param = $this->request->param("", "", "trim");

        try {
            $result = (new PartnersService())->getAll($param);

            return json(successful($result));
        } catch (\Exception $e) {
            return json(errorful($e->getMessage()));
        }
    }
}
